package com.umakr.ax.app.web;

import com.umakr.ax.app.service.AppAutoMenuService;
import com.umakr.ax.core.base.AbstractController;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <p>
 * ${table.comment}  前端控制器
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
@Controller
@RequestMapping("/api/autoMenu")
public class AutoMenuAppController extends AbstractController {

	@Autowired
	AppAutoMenuService appAutoMenuService;

	@ApiOperation(value = "读取自定义菜单")
	@GetMapping(value = "/read/detail")
	public Object get(ModelMap modelMap, @RequestParam Map<String, Object> param) {
		return setSuccessModelMap(modelMap, appAutoMenuService.detail(param));
	}

}